package com.situ.yB2C.user.pojo;

import java.io.Serializable;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.situ.yB2C.base.pojo.BaseClass;


@Alias("User")
public class User extends BaseClass implements Serializable {

	
	private static final long serialVersionUID = 1L;
	public static final int USER_KIND_BUYER = 1;
	public static final int USER_KIND_ADMIN = 0;
	private String userName;//用户名称
	private String userCode;//用户帐号
	private String userPass;//用户密码
	private String userAvatar ;//用户头像
	private Integer userKind;//用户类别#1:买家;0:商家;
	private Integer isLock;//是否锁定#1:是;0:否;
	private Integer loginCount;//登陆次数
	private String loginIp;//最后登录IP
	private Date loginDate;//最后登录时间
	
	
	public Integer getUserKind() {
		return userKind;
	}
	public void setUserKind(Integer userKind) {
		this.userKind = userKind;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getUserPass() {
		return userPass;
	}
	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}
	public String getUserAvatar() {
		return userAvatar;
	}
	public void setUserAvatar(String userAvatar) {
		this.userAvatar = userAvatar;
	}
	public Integer getIsLock() {
		return isLock;
	}
	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}
	public Integer getLoginCount() {
		return loginCount;
	}
	public void setLoginCount(Integer loginCount) {
		this.loginCount = loginCount;
	}
	public String getLoginIp() {
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	public Date getLoginDate() {
		return loginDate;
	}
	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}
	@Override
	public String toString() {
		return "User [userName=" + userName + ", userCode=" + userCode + ", userPass=" + userPass + ", userAvatar="
				+ userAvatar + ", userKind=" + userKind + ", isLock=" + isLock + ", loginCount=" + loginCount
				+ ", loginIp=" + loginIp + ", loginDate=" + loginDate + "]";
	}
	
	
	
	

	
}
